
package com.ruoyi.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.BusinessSign;
import com.ruoyi.service.BusinessSignServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;

/** @date 2025-09-12
 */
@RestController("业务签字")
@RequestMapping("/business/business-sign")
public class BusinessSignController extends BaseController
{
    @Autowired
    private BusinessSignServiceImpl service;

    @RequestMapping(value = "/list",name = "分页列表")
    public Object selectPage(Page page, @RequestParam Map<String,Object> param) {
        service.selectPage(page,param);
        return page;
    }

    @RequestMapping( value = "/getById"  )
    public Object getById(String id)
    {
        return service.getById(id);
    }

    @RequestMapping( value = "/doSave"  )
    public Object doSave(@RequestBody BusinessSign businessSign)
    {
        service.doSave(businessSign);
        return "";
    }

    @RequestMapping( value = "/deleteById"  )
    public Object deleteById(String id)
    {
        service.deleteById(id);
        return "";
    }
}
